package com.regent.central.bill.core;

import com.regent.central.bill.common.LoggingType;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.math.BigDecimal;
import java.util.Date;

@Table(name = "central_action_clearance_logging")
public class ClearanceLogging {
    /**
     * 单据核销动作记录日志ID
     */
    @Id
    private String id;

    @Column(name = "central_action_clearance_id")
    private String centralActionClearanceId;

    /**
     * 记录类型
     */
    private LoggingType type;

    /**
     * 销售单开单旧核销金额
     */
    @Column(name = "old_amount")
    private BigDecimal oldAmount;

    /**
     * 销售单开单新核销金额
     */
    @Column(name = "new_amount")
    private BigDecimal newAmount;

    /**
     * 记录版本
     */
    private Integer version;

    /**
     * 创建时间
     */
    @Column(name = "date_created")
    private Date dateCreated;

    /**
     * 创建人员
     */
    @Column(name = "user_created")
    private String userCreated;

    /**
     * 最后更新时间
     */
    @Column(name = "last_updated")
    private Date lastUpdated;

    /**
     * 最后更新人员
     */
    @Column(name = "user_updated")
    private String userUpdated;

    /**
     * 删除时间
     */
    @Column(name = "time_deleted")
    private Long timeDeleted;

    /**
     * 删除人员
     */
    @Column(name = "user_deleted")
    private String userDeleted;

    /**
     * 获取单据核销动作记录日志ID
     *
     * @return id - 单据核销动作记录日志ID
     */
    public String getId() {
        return id;
    }

    /**
     * 设置单据核销动作记录日志ID
     *
     * @param id 单据核销动作记录日志ID
     */
    public void setId(String id) {
        this.id = id;
    }

    /**
     * @return central_action_clearance_id
     */
    public String getCentralActionClearanceId() {
        return centralActionClearanceId;
    }

    /**
     * @param centralActionClearanceId
     */
    public void setCentralActionClearanceId(String centralActionClearanceId) {
        this.centralActionClearanceId = centralActionClearanceId;
    }

    /**
     * 获取记录类型
     *
     * @return type - 记录类型
     */
    public LoggingType getType() {
        return type;
    }

    /**
     * 设置记录类型
     *
     * @param type 记录类型
     */
    public void setType(LoggingType type) {
        this.type = type;
    }

    /**
     * 获取销售单开单旧核销金额
     *
     * @return old_amount - 销售单开单旧核销金额
     */
    public BigDecimal getOldAmount() {
        return oldAmount;
    }

    /**
     * 设置销售单开单旧核销金额
     *
     * @param oldAmount 销售单开单旧核销金额
     */
    public void setOldAmount(BigDecimal oldAmount) {
        this.oldAmount = oldAmount;
    }

    /**
     * 获取销售单开单新核销金额
     *
     * @return new_amount - 销售单开单新核销金额
     */
    public BigDecimal getNewAmount() {
        return newAmount;
    }

    /**
     * 设置销售单开单新核销金额
     *
     * @param newAmount 销售单开单新核销金额
     */
    public void setNewAmount(BigDecimal newAmount) {
        this.newAmount = newAmount;
    }

    /**
     * 获取记录版本
     *
     * @return version - 记录版本
     */
    public Integer getVersion() {
        return version;
    }

    /**
     * 设置记录版本
     *
     * @param version 记录版本
     */
    public void setVersion(Integer version) {
        this.version = version;
    }

    /**
     * 获取创建时间
     *
     * @return date_created - 创建时间
     */
    public Date getDateCreated() {
        return dateCreated;
    }

    /**
     * 设置创建时间
     *
     * @param dateCreated 创建时间
     */
    public void setDateCreated(Date dateCreated) {
        this.dateCreated = dateCreated;
    }

    /**
     * 获取创建人员
     *
     * @return user_created - 创建人员
     */
    public String getUserCreated() {
        return userCreated;
    }

    /**
     * 设置创建人员
     *
     * @param userCreated 创建人员
     */
    public void setUserCreated(String userCreated) {
        this.userCreated = userCreated;
    }

    /**
     * 获取最后更新时间
     *
     * @return last_updated - 最后更新时间
     */
    public Date getLastUpdated() {
        return lastUpdated;
    }

    /**
     * 设置最后更新时间
     *
     * @param lastUpdated 最后更新时间
     */
    public void setLastUpdated(Date lastUpdated) {
        this.lastUpdated = lastUpdated;
    }

    /**
     * 获取最后更新人员
     *
     * @return user_updated - 最后更新人员
     */
    public String getUserUpdated() {
        return userUpdated;
    }

    /**
     * 设置最后更新人员
     *
     * @param userUpdated 最后更新人员
     */
    public void setUserUpdated(String userUpdated) {
        this.userUpdated = userUpdated;
    }

    /**
     * 获取删除时间
     *
     * @return time_deleted - 删除时间
     */
    public Long getTimeDeleted() {
        return timeDeleted;
    }

    /**
     * 设置删除时间
     *
     * @param timeDeleted 删除时间
     */
    public void setTimeDeleted(Long timeDeleted) {
        this.timeDeleted = timeDeleted;
    }

    /**
     * 获取删除人员
     *
     * @return user_deleted - 删除人员
     */
    public String getUserDeleted() {
        return userDeleted;
    }

    /**
     * 设置删除人员
     *
     * @param userDeleted 删除人员
     */
    public void setUserDeleted(String userDeleted) {
        this.userDeleted = userDeleted;
    }
}